package top.colordreams.tenant;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 动态租户配置
 *
 * @author 秋辞未寒
 */
@AllArgsConstructor
@Data
@Builder
public class TenantConfig implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 默认租户ID
     */
    private String defaultTenantId;

    /**
     * 根租户ID
     */
    private String rootTenantId;

    /**
     * 默认租户是否为根租户
     */
    private boolean defaultTenantIsRoot;

}
